package com.woniu.user.common;


import com.woniu.result.ResultCode;

public enum VIPException implements ResultCode {

    VIP_NOT_EXIST(30001, "VIP_NOT_EXIST 会员卡不存在"),
    VIPCARD_STATE_EXCEPTION(30002, "VIPCARD_STATE_EXCEPT 会员卡状态不正确"),
    VIPCARD_EXSIT(30003, "VIPCARD_EXSIT 会员卡已存在"),
    VIP_EXSIT_HIGHER(30004, "VIP_EXSIT_HIGHER 存在更高的折扣vip卡")
    ;

    private int code;
    private String message;

    private VIPException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
